﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoreFrame.Business;

namespace MarchEstate.Manager.BusinesEntity.Costcalculate
{
    /// <summary>
    /// 水电表算法
    /// </summary>
    public abstract class AbstractMeterAlgorithmic : AbstractBusines
    {
        private decimal _lastdegree;//上次度数

        public decimal Lastdegree
        {
            get { return _lastdegree; }
            set { _lastdegree = value; }
        }
        private decimal _currentdegree;//本次度数

        public decimal Currentdegree
        {
            get { return _currentdegree; }
            set { _currentdegree = value; }
        }
        private decimal _unitprice;//单价

        public decimal Unitprice
        {
            get { return _unitprice; }
            set { _unitprice = value; }
        }

        /// <summary>
        /// 计算费用金额
        /// </summary>
        /// <returns></returns>
        public abstract decimal GetItemFee();

        /// <summary>
        /// 计算滞纳金
        /// </summary>
        /// <returns></returns>
        public abstract decimal GetLateFee();
    }
}
